import 'package:flutter/material.dart';
import 'package:flutter_repo/widgets/simple_app_bar.dart';

class ErrorDemoPage extends StatelessWidget {
  const ErrorDemoPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    Widget listViewWidget = ListView.builder(
      itemCount: 20,
        prototypeItem: const ListTile(title: Text("1"),),
        itemBuilder: (BuildContext ctx, int index) => ListTile(title: Text("$index"),),
    );
    return Scaffold(
      appBar: SimpleAppBar(titleValue: "Error demo page",),
      body: SizedBox(
        height: 600,
        child: Column(
          children: [
            listViewWidget,
            const Spacer(),
            listViewWidget,
          ],
        ),
      ),
    );
  }
}